package apps;

import java.text.SimpleDateFormat;
import java.util.Date;

public class CheckingAccount_old extends Account_old
{
    private int limit;

    public CheckingAccount_old(Agency agency)
    {
	super(agency);
    }

    @Override
    public void printDetailedStatement()
    {
	System.out.println("Detaillierten Kontoauszug.");

	SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
	Date now = new Date();

	System.out.println("Datum: " + sdf.format(now));
	System.out.println("Gleichgewicht: " + this.getBalance());
	System.out.println("Grenze: " + this.limit);
    }
}
